package com.small.xx.ai.file.dto;

/**
 * 目录浏览请求DTO
 * 
 * @author xx-ai
 * @version 1.0.0
 */
public class DirectoryBrowseRequest {
    
    /**
     * 目录路径
     */
    private String path;
    
    /**
     * 是否显示隐藏文件
     */
    private Boolean showHidden = false;
    
    /**
     * 排序类型：name, size, lastModified, created
     */
    private String sortBy = "";
    
    /**
     * 排序方向：asc, desc
     */
    private String sortOrder = "";

    // 构造器
    public DirectoryBrowseRequest() {}

    public DirectoryBrowseRequest(String path) {
        this.path = path;
    }

    // Getter和Setter方法
    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Boolean getShowHidden() {
        return showHidden;
    }

    public void setShowHidden(Boolean showHidden) {
        this.showHidden = showHidden;
    }

    public String getSortBy() {
        return sortBy;
    }

    public void setSortBy(String sortBy) {
        this.sortBy = sortBy;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }

    @Override
    public String toString() {
        return "DirectoryBrowseRequest{" +
                "path='" + path + '\'' +
                ", showHidden=" + showHidden +
                ", sortBy='" + sortBy + '\'' +
                ", sortOrder='" + sortOrder + '\'' +
                '}';
    }
}